package net.yters.model.agents.concrete;

import java.util.TreeMap;

import net.yters.model.ModelState;
import net.yters.model.Environment.AGNT;
import net.yters.model.agents.Agent;
import net.yters.model.agents.TextAgent;
import net.yters.model.agents.brains.Semantic_DodgeAndKill_Brain;
import net.yters.util.Box;

public class SemanticsAgent extends TextAgent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2368263976608262881L;

	public SemanticsAgent(ModelState model) {
		super(model);
		
		f_type.f_value = new Double(AGNT.SMTC.ordinal()); // TODO might want to change the type here

		Semantic_DodgeAndKill_Brain brain = new Semantic_DodgeAndKill_Brain(this);
		f_brains.add(brain);
	}

	@Override
	protected
	boolean decide(TreeMap<String, Box> input, Agent actuator) {
		if(actuator.f_state.get("id").f_value.equals(f_choice.f_value)) {
			return true;
		}

		return false;
	}

	@Override
	protected void initDecision() {
		
	}
}
